#include "stdafx.h"
#include "TriggerRequirement.h"



TriggerRequirement::TriggerRequirement(void)
{
	prevResult= false;

}



TriggerRequirement::~TriggerRequirement(void)
{

}


void TriggerRequirement::parameterChanged(EntityControl *sourceEntity, std::string parameterName, EntityParameter *oldValue, EntityParameter *newValue)
{
		ownerTrigger->setDirty(sourceEntity,this);
}


void TriggerRequirement::setOwnerTrigger(Trigger *trigger)
{
	ownerTrigger = trigger;
}

void TriggerRequirement::setResult(bool result)
{
	prevResult = result;

}

bool TriggerRequirement::getPrevResult()
{
	return prevResult;
}
